<!--搜索与重置-->
<template>
  <span>
    <el-button
      class="filter-item"
      size="mini"
      type="success"
      icon="el-icon-search"
      @click="crud.toQuery"
      >搜索</el-button
    >
    <el-button
      v-if="crud.optShow.reset"
      class="filter-item"
      size="mini"
      type="warning"
      icon="el-icon-refresh-left"
      @click="crud.resetQuery()"
      >重置</el-button
    >
    <el-button
      v-if="crud.optShow.printConsumable"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printConsumable()"
      >批量打印条形码</el-button
    >
    <el-button
      v-if="crud.optShow.printHazardousChemicals"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printHazardousChemicals()"
      >批量打印条形码</el-button
    >
    <el-button
      v-if="crud.optShow.printStandardSubstance"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printStandardSubstance()"
      >批量打印条形码</el-button
    >
    <el-button
      v-if="crud.optShow.printQRConsumable"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printQRConsumable()"
      >批量打印二维码</el-button
    >
    <el-button
      v-if="crud.optShow.printQRHazardousChemicals"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printQRHazardousChemicals()"
      >批量打印二维码</el-button
    >
    <el-button
      v-if="crud.optShow.printQRStandardSubstance"
      class="filter-item"
      size="mini"
      type="primary"
      icon="el-icon-printer"
      @click="crud.printQRStandardSubstance()"
      >批量打印二维码</el-button
    >
  </span>
</template>
<script>
import { crud } from "@crud/crud";
export default {
  mixins: [crud()],
  props: {
    itemClass: {
      type: String,
      required: false,
      default: "",
    },
  },
};
</script>
